var Base;
(function (Base) {
    var Page = (function () {
        function Page(parametersName) {
            if(!parametersName || parametersName == '') {
                parametersName = 'jsonpageoptions';
            }
            var internalObj = this.JsonToObject("#" + parametersName);
            this.options = (internalObj && internalObj.options) ? internalObj.options : null;
            this.aUrl = (internalObj && internalObj.urls) ? internalObj.urls : null;
            Page.Self = this;
        }
        Page.prototype.Ready = function () {
        };
        Page.prototype.JsonToObject = function (DOMElement) {
            var jsontext = $(DOMElement).html();
            return eval('(' + jsontext + ')');
        };
        Page.prototype.arrayObjectIndexOf = function (myArray, searchTerm, property) {
            if(myArray) {
                for(var i = 0, len = myArray.length; i < len; i++) {
                    if(myArray[i][property] === searchTerm) {
                        return i;
                    }
                }
                return -1;
            }
            return -1;
        };
        return Page;
    })();
    Base.Page = Page;    
})(Base || (Base = {}));
//@ sourceMappingURL=Base.js.map
